/*  1:   */ package com.jetbrains.licenseServer.openapi;
/*  2:   */ 
/*  3:   */

import java.math.BigInteger;
import java.security.*;
import java.security.spec.RSAPublicKeySpec;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class PublicKeys
/* 12:   */ {
/* 13:   */   public static final PublicKey PUBLIC_ENCRYPTION_KEY;
/* 14:   */   public static final String ENCRYPTION_MODULUS = "9616540267013058477253762977293425063379243458473593816900454019721117570003248808113992652836857529658675570356835067184715201230519907361653795328462699";
/* 15:   */   public static final String ENCRYPTION_EXPONENT = "65537";
/* 16:   */   public static final String SIG_START = "<!-- ";
/* 17:   */   public static final String SIG_END = " -->";
/* 18:   */   
/* 19:   */   static
/* 20:   */   {
/* 21:   */     try
/* 22:   */     {
/* 23:19 */       KeyFactory localKeyFactory = KeyFactory.getInstance("RSA");
/* 24:20 */       PUBLIC_ENCRYPTION_KEY = localKeyFactory.generatePublic(new RSAPublicKeySpec(new BigInteger("9616540267013058477253762977293425063379243458473593816900454019721117570003248808113992652836857529658675570356835067184715201230519907361653795328462699"), new BigInteger("65537")));
/* 25:   */     }
/* 26:   */     catch (Exception localException)
/* 27:   */     {
/* 28:26 */       throw new RuntimeException(localException);
/* 29:   */     }
/* 30:   */   }
/* 31:   */   
/* 32:   */   public static Signature createVerifyingSignature()
/* 33:   */     throws NoSuchAlgorithmException, InvalidKeyException
/* 34:   */   {
/* 35:31 */     Signature localSignature = Signature.getInstance("MD5withRSA");
/* 36:32 */     localSignature.initVerify(PUBLIC_ENCRYPTION_KEY);
/* 37:33 */     return localSignature;
/* 38:   */   }
/* 39:   */ }



/* Location:           E:\idea\

 * Qualified Name:     com.jetbrains.licenseServer.openapi.PublicKeys

 * JD-Core Version:    0.7.0.1

 */